import HTMLTestReportCN
from AdminPlatform import *
from AdminPlatformOne import *
from AdminPlatformTwo import *
from Livezhibo import *
from TestCaseSet import *
suite = unittest.TestSuite()

suite.addTest(TestCaseSet("test_management"))

# suite.addTest(AdminPlatform("test_site_adve"))
# suite.addTest(AdminPlatform("test_newactive_adManagement"))
#
# suite.addTest(AdminPlatform("test_management"))
# suite.addTest(AdminPlatform("test_newsgl"))
# suite.addTest(AdminPlatform("test_extension"))
# suite.addTest(AdminPlatform("test_acticity"))
# suite.addTest(AdminPlatform("test_acticicy"))
# suite.addTest(AdminPlatform("test_lottery"))
# suite.addTest(AdminPlatform("test_playkg"))
# suite.addTest(AdminPlatform("test_lotterylogo"))
# suite.addTest(AdminPlatform("test_lotterypl"))
# suite.addTest(AdminPlatform("test_quota"))
# suite.addTest(AdminPlatform("test_odds"))
# suite.addTest(AdminPlatform("test_award"))
# suite.addTest(AdminPlatform("test_history"))
# suite.addTest(AdminPlatform("test_backwater"))
#
# suite.addTest(AdminPlatformOne("test_notelist"))
# suite.addTest(AdminPlatformOne("test_record"))
# suite.addTest(AdminPlatformOne("test_management"))
# suite.addTest(AdminPlatformOne("test_grade"))
# suite.addTest(AdminPlatformOne("test_menberlable"))
# suite.addTest(AdminPlatformOne("test_adminlist"))
# suite.addTest(AdminPlatformOne("test_adminrole"))
# suite.addTest(AdminPlatformOne("test_agentcj"))
# suite.addTest(AdminPlatformOne("test_cash"))
# suite.addTest(AdminPlatformOne("test_online"))
# suite.addTest(AdminPlatformOne("test_audit"))
# suite.addTest(AdminPlatformOne("test_paids"))
# suite.addTest(AdminPlatformOne("test_toask"))
# suite.addTest(AdminPlatformOne("test_trading"))
# suite.addTest(AdminPlatformOne("test_transfer"))
#
# suite.addTest(AdminPlatformOne("test_collection"))
#
# suite.addTest(AdminPlatformOne("test_report"))
# suite.addTest(AdminPlatformOne("test_reportdl"))
# suite.addTest(AdminPlatformOne("test_reportyh"))
# suite.addTest(AdminPlatformOne("test_reportcr"))
# suite.addTest(AdminPlatformOne("test_reportcz"))
# suite.addTest(AdminPlatformOne("test_reportyk"))
# suite.addTest(AdminPlatformOne("test_reporths"))
#
# suite.addTest(AdminPlatformTwo("test_system"))
# suite.addTest(AdminPlatformTwo("test_setupthe"))
# suite.addTest(AdminPlatformTwo("test_operationlog"))
# suite.addTest(AdminPlatformTwo("test_adminoperation"))
# suite.addTest(AdminPlatformTwo("test_appadmin"))
# suite.addTest(AdminPlatformTwo("test_androidapp"))
# suite.addTest(AdminPlatformTwo("test_shielding"))
# suite.addTest(AdminPlatformTwo("test_game"))
# suite.addTest(AdminPlatformTwo("test_service"))
# suite.addTest(AdminPlatformTwo("test_thefilm"))
#
# suite.addTest(Livezhibo("test_livezb"))
# suite.addTest(Livezhibo("test_thehost"))
# suite.addTest(Livezhibo("test_homement"))
# suite.addTest(Livezhibo("test_riskcontrol"))
# suite.addTest(Livezhibo("test_thereport"))
# suite.addTest(Livezhibo("test_chat_room"))




filePath ='D:\\Report_selemiun.html'       #确定生成报告的路径
fp = open(filePath,'wb')
runner = HTMLTestReportCN.HTMLTestRunner(
    stream=fp,
    title=u'兔牙-黄色版本-Admin管理系统',
    #description='详细测试用例结果',    #不传默认为空
    tester=u"liulei"     #测试人员名字，不传默认为QA
    )
#运行测试用例
runner.run(suite)



